package com.example.common;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @author meihua
 * @version 1.0
 * @date 2021/2/20 10:34
 */
public class Order implements Serializable {

    private Integer id;
    private String name;
    private BigDecimal price;
    private String remark;
    private String userName;
    private Integer userId;

    public Order() {
    }

    public Order(Integer id, String name, BigDecimal price, String remark, String userName, Integer userId) {
        this.id = id;
        this.name = name;
        this.price = price;
        this.remark = remark;
        this.userName = userName;
        this.userId = userId;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public String toString() {
        return "Order{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", price=" + price +
                ", remark='" + remark + '\'' +
                ", userName='" + userName + '\'' +
                ", userId=" + userId +
                '}';
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }
}
